/*
 * @Author: kaikaima
 * @Date: 2020-12-29 15:59:46
 * @LastEditTime: 2021-01-04 20:56:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /undefined/home/messi/Data_Structure_and_Algorithm_GIT/Tree/IntervalTree/test.cpp
 */
#include "Interval.h"
int main (int argc, char* argv[]){
    interval<int> array(3,4);
    array.inorder_walk();
    for(int i=0; i<10;i++){
    for(int j=3; j<5;j++){
    array.insert(i,j);}
    array.inorder_walk();}
    array.intersect(1,2);
    array.intersect(1,3);
    interval<int>::zone in(0,3);
    array.del(in);
    array.inorder_walk();
    return 0;
}